<template>
	<view>
		<uni-nav-bar left-icon="arrowthinleft" title="收到简历" :border="false" :fixed="true" bg="bg-fff" color="#333" @clickLeft="goBack()"></uni-nav-bar>
		
		<!-- 分类 -->
		<!-- <view class="padding-20">
			<view class="flex align-center  justify-between flex-wrap bg-fff padding-top-24 padding-y-10">
				<view class="w20 text-center margin-bottom-24">
					<image src="../../static/img/zp_icon.png" class="index_icon"></image>
					<view class="fs-24 color-333">同城招聘</view>
				</view>
			</view>
		</view> -->
		<!-- 分类end -->

		<view class="padding-20">
			<view v-for="(item,index) in list" :key='index' @click="jump('/pages/qiuzhi/jianli_detail?id='+item.id)"
				class="bg-fff flex align-center justify-between radius10 padding-x-24 padding-y-30 margin-bottom-30">
				<image style="width: 120rpx;height: 120rpx;border-radius: 100%;" :src="item.avatar"></image>
				<view class="margin-left-24 flex1">
					<view class="flex align-center justify-between">
						<view class="flex align-center">
							<view class="fs-28 color-000">{{item.name}}</view>
							<image style="width: 26rpx;height: 26rpx;" :src="item.sex == '男' ?'../../static/img/nan.png':'../../static/img/nv.png'"></image>
						</view>
						<text class="fs-24 color-666">{{item.create_time}}</text>
					</view>
					<view class="fs-24 color-666 margin-top-10">{{item.birth}}年·工作时间{{item.job_start_time}}年·{{item.education}}·{{item.school}}</view>
					<view class="fs-22 color-666 margin-top-10">薪资  {{item.income}}</view>
				</view>
			</view>
			
			<view class="nomore" :class="loadStatus" v-if="list.length"></view>
			<empty v-if="list.length < 1"></empty>
			
			
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				hasMore: true,
				loadStatus: '',
				list: [],
				q:{
					keyword:"",
					page:1,
				},
			}
		},
		onLoad() {
			this.getList();
		},
		onReachBottom() {
			if(this.hasMore){
				this.q.page += 1;
				this.getList();
			}
		},
		methods:{
			getList(){
				this.isLoading = true;
				this.$api.resume_list(this.q).then(res=>{
					if(res.code == 1){
						this.isLoading = false;
						this.list = [...this.list, ...res.data.data];
						if (res.data.data.length != 0) {
							this.hasMore = true;
							this.loadStatus = '';
						} else {
							this.hasMore = false;
							this.loadStatus = 'over';
						}
					}
				})
			},
			
		}
	}
</script>

<style>
	page {
		background: #f7f7f7;
	}
</style>
<style lang="scss" scoped>
	.ipt {
		height: 70rpx;
	}

	.index_icon {
		width: 56rpx;
		height: 56rpx;
	}
</style>
